/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.manchester.biology.eqhei.implementations;

import edu.manchester.biology.eqhei.interfaces.eQHEI_Attribute;


/**
 *
 * @author mekendall
 */
public class eQHEI_AttributeIMP implements eQHEI_Attribute{
    
    private String name;
    private Integer value;
    private Integer count;
    
    public eQHEI_AttributeIMP(){
        
    }
    
    public eQHEI_AttributeIMP(String n, Integer v){
        name = n;
        value = v;
        count = 0;
    }
    
    @Override
    public void set(String n, Integer v) {
        name = n;
        value = v;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }

    @Override
    public String getName() {
        return this.name;
    }

    @Override
    public Integer increment() {
        return ++count;
    }
   
}
